package behavioral.chain;

/**
 * @author fay
 */
public class ActionClient {
	private ActionClient() {}

	public static void doAction(Integer level) {
		HandlerA handlerA = new HandlerA();
		HandlerB handlerB = new HandlerB();
		HandlerC handlerC = new HandlerC();
		handlerA.setNextHandler(handlerB);
		handlerB.setNextHandler(handlerC);
		handlerA.doAction(level);
	}
}
